import request from '@/utils/request'

const path = "/rules"

// 查询 公海进入规则
export function listRules(query) {
  return request({
    url: path + '/list',
    method: 'get',
    params: query
  })
}

export function updateRules(data) {
  return request({
    url: path,
    method: 'put',
    data: data
  })
}
//订单系数规则列表
export function orderCoefficientRulesList(query) {
  return request({
    url: '/orderCoefficientRules/listAll',
    method: 'get',
    params: query
  })
}
//订单系数规则详情
export function orderCoefficientRulesDetail(id) {
  return request({
    url: '/orderCoefficientRules/dept/'+id,
    method: 'get'
  })
}
//订单系数规则保存
export function orderCoefficientRulesSave(data) {
  return request({
    url: '/orderCoefficientRules',
    method: 'put',
    data: data
  })
}
